

var gsContentCurrentID = ID_P_CONTENT_2;
var gsMarkContentPostID = ID_P_MARK_RESULT_2;

function setContentCurrentID( sPageID )
{
    if ( giPostKind == MARK_POST )
        gsMarkContentPostID = sPageID;
    else
        gsContentCurrentID = sPageID;
}


 /*
        else if ( sPageID === getContentPrevID() )
        {
            setContentCurrentID( sPageID );
            updateDiv( sPageID, getHTMLOfPostDiv() );
        }
        else if ( sPageID === getContentNextID() )
        {
            setContentCurrentID( sPageID );
            updateDiv( sPageID, getHTMLOfPostDiv() );
        }
        */
function getContentPrevID()
{
    if ( gsContentCurrentID == ID_P_CONTENT_1 )
        return ID_P_CONTENT_3;
    else if ( gsContentCurrentID == ID_P_CONTENT_2 )
        return ID_P_CONTENT_1;
    else
        return ID_P_CONTENT_2;
}

function getContentNextID()
{
    if ( gsContentCurrentID == ID_P_CONTENT_1 )
        return ID_P_Content_2;
    else if ( gsContentCurrentID == ID_P_CONTENT_2 )
        return ID_P_CONTENT_3;
    else
        return ID_P_CONTENT_1;
}



function getHTMLOfMarkDiv()
{
    var string = "";
    
    if ( PT_MARK_TEMP_DATA[0] )
    {
        var iBaseIndex = 0;
        
        for ( var i = 0; i < PT_MARK_TEMP_DATA.length; i ++ )
        {
            string += getHTMLOfListItem( "icon paper", ID_ITEM + (i - iBaseIndex), "" + i + PT_MARK_TEMP_DATA[i][PT_WORK_SUMMARY][0] );
        }
    }
    string += getHTMLOfNewLine( 1 );
    
    string += getHTMLOfListItem( "icon left", getListPrevID( MARK_POST ), S_PREV_PAGE[giLanguageIndex] );
    string += getHTMLOfListItem( "icon right", getListNextID( MARK_POST ), S_NEXT_PAGE[giLanguageIndex] );
    
    string += getHTMLOfNewLine( 1 );

    return string;
}


var aaPTData = getPTData( giPostKind, i );
aaPTData[PT_WORK_SUMMARY][0] ;

var asPostMap = getPostMap( iPostKind );


getCurrentPostIndex
updatePostAbsoluteIndex
gsLastItemDivID
giCurrentRelatedPostIndex = iClickIndex;

